package org.gnyxy.service;

import org.gnyxy.dto.*;
import org.gnyxy.result.PageResult;
import org.gnyxy.vo.OrderPaymentVO;
import org.gnyxy.vo.OrderStatisticsVO;
import org.gnyxy.vo.OrderVO;
import org.gnyxy.vo.OrdersSubmitVO;

public interface OrdersService {
    OrdersSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    void paySuccess(String outTradeNo);

    PageResult PageQuery(Integer page, Integer pageSize, Integer status);

    OrderVO details(Long id);

    void userCancelById(Long id) throws Exception;

    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO statistics();

    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    void rejection(OrdersRejectionDTO ordersRejectionDTO) throws Exception;

    void cancel(OrdersCancelDTO ordersCancelDTO) throws Exception;

    void delivery(Long id);

    void complete(Long id);
}
